﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace InvestmentIntelligence.DbModel.Models
{
    [Table("FundBookEntityActiveSerie", Schema = "TradingData")]
    public class FundBookEntityActiveSerie
    {
        [Key, Column(Order = 0)]
        public int FundBookEntityId { get; set; }

        [Key, Column(Order = 1)]
        public DateTime Date { get; set; }
        public decimal? OpenActiveCapital { get; set; }
        public decimal? CloseActiveCapital { get; set; }

        [ForeignKey("FundBookEntityId")]
        public virtual FundBookEntity FundBookEntity { get; set; }
    }
}
